Micron Document
🎖️GitЯра🎖️


Displaying Raw • View renderedDownload

docs/ru-rRU/user/mqtt.md renovate/net.java.dev.jna-jna-5.x (5a8f4966) Text, 7.37 KB

---
title: MQTT
parent: Руководство пользователя
nav_order: 11
last_updated: 2026-05-13
description: Bridge your mesh to the internet — MQTT broker setup, encryption layers, and map reporting.
aliases:
Tff7b72- mqtt
Tff7b72- internet-bridge
Tc9d1d9 - broker
Tc9d1d9---

Tc9d1d9# MQTT

MQTT bridges your Meshtastic mesh network to the internet, enabling long-range communication beyond radio range.

Tc9d1d9## Обзор

The MQTT module connects your node to an MQTT broker, allowing:

Tff7b72- Messages to reach nodes on different physical meshes via the internet
Tff7b72- Integration with home automation and monitoring systems
Tff7b72- Publishing node positions to the public Meshtastic map
Tff7b72- Custom data pipelines for logging and alerting

Tc9d1d9## Как это работает

Ta5d6ff```
[Your Node] → Radio → [Gateway Node with WiFi] → MQTT Broker → [Remote Gateway] → Radio → [Remote Node]
```

A gateway node with internet access (WiFi or Ethernet) publishes mesh messages to an MQTT topic. Remote gateways subscribed to the same topic inject those messages into their local mesh.

Tc9d1d9## Настройки

Tc9d1d9### Включение MQTT

Tff7b721. Navigate to **Settings → Module Config → MQTT**.
Tff7b722. Enable the MQTT module.
Tff7b723. Configure the broker connection:

![Tff7b72MQTT toggle switch](Te6edf3../../assets/screenshots/settings_switch.png)

| Настройка | Описание | По умолчанию |
| ---------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------- |
| Адрес сервера | MQTT broker hostname | mqtt.meshtastic.org |
| Имя пользователя | Broker authentication | meshdev |
| Пароль | Broker authentication | large4cats |
| Корневая тема | Base topic for messages | msh |
| Шифрование | Encrypt MQTT payload | Включено |
| Tf85149~~JSON Output~~ | ⚠️ **Deprecated** — JSON packet support has been removed from firmware; this field is ignored | Отключено |
| TLS | Secure connection to broker | Отключено |
| Map Reporting | Report position to public map | Отключено |

Tc9d1d9### Default Meshtastic Broker

The community maintains a public broker at Ta5d6ff`mqtt.meshtastic.org`. This is intended for general use and testing.

Tff7b72> 🔒 **Privacy:** Messages on the public broker are readable by anyone subscribed. Always use channel encryption for private communications.

Tc9d1d9### Private Broker

For better privacy and control, you can run your own MQTT broker:

Tff7b72- Mosquitto (lightweight, open-source)
Tff7b72- HiveMQ
Tff7b72- EMQX

Configure your node to point to your private broker with appropriate credentials.

Tc9d1d9## Map Reporting

When Map Reporting is enabled, your node publishes its position to the Meshtastic community map:

Tff7b72- Visible at [Tff7b72meshmap.net](Te6edf3https://meshmap.net) and similar community map services
Tff7b72- Only position and node info are shared
Tff7b72- Disable this if you don't want your location publicly visible

Tc9d1d9## Uplink vs Downlink

| Direction | Описание |
| ------------ | -------------------------------- |
| **Uplink** | Messages from mesh → MQTT broker |
| **Downlink** | Messages from MQTT broker → mesh |

Configure per-channel which directions are active to control message flow and airtime usage.

Tc9d1d9## Message Formats

MQTT uses protobuf message format:

| Format | Описание | Use case |
| ------------ | ----------------------------------- | -------------------------- |
| **Protobuf** | Binary Meshtastic protobuf encoding | Node-to-node mesh bridging |

Tff7b72> ⚠️ **Note:** JSON output support was removed from firmware. The `json_enabled` setting is still visible in the app for legacy compatibility but has no effect on current firmware versions.

Tc9d1d9## Encryption & Privacy

Understanding the layered encryption model:

Tff7b721. **Channel encryption** happens on the mesh _before_ MQTT. If your channel has a PSK, the MQTT payload is already encrypted — the broker and any subscribers see only the ciphertext.
Tff7b722. **MQTT encryption** (the module setting) adds an additional encryption layer for transit to the broker. This protects metadata and routing information.
Tff7b723. **TLS** encrypts the TCP connection to the broker itself, preventing network-level eavesdropping.

Tff7b72> 🔒 **Important:** The default public channel has a well-known key. Messages on the default channel sent via MQTT are effectively **unencrypted** — anyone can decode them. Always use a custom PSK for private communications.

Tc9d1d9## Best Practices

Tff7b72- Use channel-level encryption (PSK) on channels that bridge to MQTT
Tff7b72- Don't enable MQTT on nodes without internet access (it will buffer and waste memory)
Tff7b72- Use a private broker for sensitive deployments
Tff7b72- Be mindful of airtime when downlinking messages from busy MQTT topics — every downlinked message consumes radio airtime on your local mesh
Tff7b72- Consider enabling uplink-only if you only need to monitor your mesh remotely without injecting messages back

Tc9d1d9## Troubleshooting

Tc9d1d9### MQTT Not Connecting

Tff7b72- **Check WiFi** — the gateway node must have an active internet connection (WiFi or Ethernet). MQTT does not work over the LoRa radio link itself.
Tff7b72- **Verify credentials** — incorrect username or password will silently fail on most brokers. Double-check for trailing spaces.
Tff7b72- **Firewall** — port 1883 (MQTT) or 8883 (MQTT+TLS) must be open. Some networks block non-standard ports.
Tff7b72- **DNS resolution** — if using a custom broker hostname, verify the node can resolve it. Try the broker's IP address directly.

Tc9d1d9### Messages Not Bridging

Tff7b72- **Check uplink/downlink settings** — if only uplink is enabled, messages flow from mesh to MQTT but not back. Enable downlink on the receiving gateway.
Tff7b72- **Channel mismatch** — both gateways must share the same channel with the same PSK. A mismatch means messages are encrypted with different keys and appear as garbage.
Tff7b72- **Topic mismatch** — ensure both gateways use the same root topic. The default Ta5d6ff`msh` works for the public broker.

Tc9d1d9## Related Topics

Tff7b72- [Tff7b72Settings — Modules & Admin](Te6edf3settings-module-admin) — MQTT module configuration reference
Tff7b72- [Tff7b72Messages & Channels](Te6edf3messages-and-channels) — channel encryption and PSK setup
Tff7b72- [Tff7b72MQTT integration guide](Te6edf3https://meshtastic.org/docs/software/integrations/mqtt) — detailed MQTT documentation on meshtastic.org

---

Served by rngit 1.5.0 - Generated in 0.1s